package com.usian.service;

import com.usian.pojo.TbContent;
import com.usian.pojo.TbContentCategory;
import com.usian.utils.AdNode;
import com.usian.utils.PageResult;

import java.util.List;

public interface TbConService {

    List<TbContentCategory> selectContentCategoryByParentId(Integer id);

    int insertContentCategory(Integer parentId, String name);

    void deleteContentCategoryById(long categoryId);

    int updateContentCategory(Integer id, String name);

    PageResult selectTbContentAllByCategoryId(long categoryId);

    int insertTbContent(TbContent tbContent);

    int deleteContentByIds(long ids);

    List<AdNode> selectFrontendContentByAD();
}
